package com.qztech.sdk.model.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.qztech.sdk.model.entities.EqSetting;

/**
 * @author:zhanghb
 * @date:2019/1/27
 * @email:2573475062@qq.com
 **/
@Dao
public interface EqSettingDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(EqSetting eqSetting);

    @Update
    void update(EqSetting eqSetting);

    @Delete
    void delete(EqSetting eqSetting);

    @Query("SELECT * FROM eq_setting WHERE p_id=:pid")
    EqSetting getEqSetting(String pid);

}
